<?php



class ConfigurationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ConfigurationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('configuration');
		$tMap->setPhpName('Configuration');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('CONFIGURATION_ID', 'ConfigurationId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CONFIGURATION_TITLE', 'ConfigurationTitle', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('CONFIGURATION_KEY', 'ConfigurationKey', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('CONFIGURATION_VALUE', 'ConfigurationValue', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('CONFIGURATION_DESCRIPTION', 'ConfigurationDescription', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('CONFIGURATION_GROUP_ID', 'ConfigurationGroupId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('SORT_ORDER', 'SortOrder', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('LAST_MODIFIED', 'LastModified', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('DATE_ADDED', 'DateAdded', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('USE_FUNCTION', 'UseFunction', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('SET_FUNCTION', 'SetFunction', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 